package com.ibeeking.found.upms.service.common.dos;

import com.ibeeking.found.common.base.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName ResourceDo
 * @Description
 * @Author ibeeking
 * @Date 2020-12-07 09:09
 **/
@Data
@TableName("upms_g_resource")
public class ResourceDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 上级资源id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 资源名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 所属服务
     */
    @TableField(value = "service_id")
    private Integer serviceId;

    /**
     * 资源
     */
    @TableField(value = "resource")
    private String resource;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 资源名称类型，1-目录，2-模块，3-资源
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 级别
     */
    @TableField(value = "level")
    private Integer level;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 是否启用，1-启用，0-禁用
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;


}
